<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
     .colok{
     	font-size:19px;
     	background:#eee;
     	width:100%;
     	height:30px;
     	border-radius:50px;
     	font-family:仿宋;
     	text-align:center;
     	line-height:30px;
     }


	</style>
</head>
<body>
	<div class="colok">
	<span>提交成功，页面 <span id='sid'> 3 </span> 秒以后自动转入百度页面</span>
	</div>
	<button id='bid'>stop</button>
</body>
<script type="text/javascript">

	bidobj=document.getElementById('bid');
 
   tobj=setTimeout(function(){
     
       	location='http://www.baidu.com';
       
    },1000);

 bidobj.onclick=function(){
    clearTimeout(tobj);
    }
</script>
</html>